package com.example.myerp.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.myerp.dto.S_pay_Dto;
import com.example.myerp.mapper.S_payMapper;
import com.example.myerp.pojo.Inbound_Scheduling;
import com.example.myerp.pojo.S_pay;
import com.example.myerp.service.S_payService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhuxingyu
 * @since 2021-08-10
 */
@RestController
@RequestMapping("/purchase/s_pay")
@SuppressWarnings("all")
public class S_payController {
    @Autowired
    S_payService service;

    @RequestMapping("/addSpay")
    public void addS_pay(S_pay_Dto s_pay_dto) {
        service.addS_pay(s_pay_dto);
    }

    @RequestMapping("/regchekspay")
    public IPage<S_pay> regchekspay(Long pageNum, Long pageSize) {
        return service.regchekspay(pageNum, pageSize);
    }


    @RequestMapping("/checkSpay")
    public void checkSpay(S_pay s_pay) {
        service.checkSpay(s_pay);
    }

    @RequestMapping("/checkSpayNo")
    public void checkSpayNo(S_pay s_pay) {
        service.checkSpayNo(s_pay);
    }


    @RequestMapping("/selSpyInb")
    public IPage<S_pay> selSpyInb(Long pageNum, Long pageSize) {
        return service.selSpyInb(pageNum, pageSize);
    }


    @RequestMapping("/updInbStaSpay")
    public Integer updInbStaSpay(Inbound_Scheduling ins) {
        return service.updInbStaSpay(ins);
    }

    @RequestMapping("/InbReg")
    public IPage<S_pay> inbRegList(Long pageNum, Long pageSize) {
        return service.inbRegList(pageNum, pageSize);
    }

    @RequestMapping("/SpRCell")
    public void sPayRegCell(S_pay_Dto s_pay_Dto) {
        service.sPayRegCell(s_pay_Dto);
    }

    @RequestMapping("/checkCell")
    public IPage<S_pay> checkCell(Long pageNum, Long pageSize) {
        return service.checkCell(pageNum, pageSize);
    }

    @RequestMapping("/SpayCellOver")
    public void sPayCellOver(S_pay_Dto s_pay_Dto) {
        service.sPayCellOver(s_pay_Dto);
    }
    @RequestMapping("/spayCellInfo")
    public IPage<S_pay> spayCellInfo(Long pageNum, Long pageSize) {
     return  service.spayCellInfo(pageNum,pageSize);
    }
}
